package com.quanfaqiang.demo1.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.quanfaqiang.demo1.pojo.User;


import java.util.List;

public interface UserService {
    User findByUserName(String username);

    void register(String username, String password);

    boolean logoff(String username, String password);

    Page<User> SelectAll(int currentPage, int pageSize);

    void DeleteId(Integer id);

    void deleteIds(List<Integer> ids);

    User SelectId(Integer id);

    Boolean selectPassword(String password, Integer id);

    void Add(User user);

    void update(User user);

    void updatePwd(String password, Integer id);

    void updateUserAddress(String userAddress, int id);

    void updateAvatar(String avatarUrl);

    Page<User> searchUser(String userName, Integer currentPage, Integer pageSize);

    Boolean selectUsername(String username);


    void updateUserStatus(int i, String online);

    Page<User> serchUser(String username, String address,String name,String phone, String email, Boolean isadmin, Boolean isonline, Integer currentPage, Integer pageSize);

    User selectUsername1(String username);
}
